package com.szq.yygh.hosp.repository;

import com.szq.yygh.hosp.model.hosp.Schedule;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/***
 * All rights Reserved, Designed By www.jx-lab.com
 * @Title: ScheduleRepository
 * @Description:
 * @author lixy
 * @date 2021/8/19 18:23
 * @version V1.0
 * @Copyright: www.jx-lab.com Inc. All rights reserved.
 * 注意：本内容仅限于众合景轩信息技术有限公司内部传阅，禁止外泄以及用于其他的商业目
 */
@Repository
public interface ScheduleRepository extends MongoRepository<Schedule, String> {

    Schedule findByHoscodeAndHosScheduleId(String hoscode, String hosScheduleId);

    List<Schedule> findByHoscodeAndDepcodeAndWorkDate(String hoscode, String depcode, Date workDate);
}
